#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 
#include <math.h> 
#include <ctype.h> 
#include <time.h> 
#include <assert.h>

int main()
{
	int n = 0;
	scanf("%d", &n);
	int mid = (n + 1) / 2;

	//upper
	for (int i = 1; i <= mid; i++)
	{
		for (int j = 1; j <= mid - i; j++)
		{
			printf(" ");
		}
		for (int j = 1; j <= 2 * i - 1; j++)
		{
			printf("*");
		}
		printf("\n");
	}

	//lower
	for (int i = mid; i >= 1; i--)
	{
		if (n % 2 != 0)
		{
			n += 1;
			continue;
		}

		for (int j = 1; j <= mid - i; j++)
		{
			printf(" ");
		}
		for (int j = 1; j <= 2 * i - 1; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}